<%@ include file="/common/taglibs.jsp"%>

<%-- <menu:useMenuDisplayer name="Velocity" config="cssHorizontalMenu.vm" permissions="rolesAdapter"> --%>
<nav>
    <!-- <li class="pad">&nbsp;</li> -->
    <c:if test="${empty pageContext.request.remoteUser}">
   	<!-- <li>
   		<a href="<c:url value="/login"/>" class="current"><fmt:message key="login.title"/></a>
   	</li> -->
   	<%-- <menu:displayMenu name="MainMenu"/>
    <menu:displayMenu name="UserMenu"/>
    <menu:displayMenu name="Institute"/>
    <menu:displayMenu name="Staff"/>
    <menu:displayMenu name="AdminMenu"/>
    <menu:displayMenu name="Logout"/> --%>
    </c:if>
    <ul id="trans-nav">
    <%if(request.getSession().getAttribute("role")== "ROLE_SUPER_ADMIN" || request.getSession().getAttribute("role")== "ROLE_ADMIN") { %>
	<%-- <c:if test="${request.getSession().getAttribute("role") =="ROLE_SUPER_ADMIN" || request.getSession().getAttribute("role")=="ROLE_ADMIN"}"> --%>
    <li class="color-green"><a title="Admin" href="/mainMenu" class="current"><span style="padding-top:20px;">Admin</span></a>
    	<ul>
            <li><a href="/showAcademicList">Academic</a></li>
            <li><a href="/showStaffList">Staff</a></li>
            <li><a href="/showCandidateList">Student</a></li>
            <li><a href="/classYears">Class</a></li>
            <li><a href="/showSectionList">Section</a></li>
            <li><a href="/showSubjectList">Subject</a></li>
            <li><a href="/showExamList">Exam</a></li>
            <li><a href="/showResultSearch">Result</a></li>
            <li><a href="/showHolidayList">Holiday</a></li>
            <li><a href="/showImportFile">Import File</a></li>
            <li><a href="/showHomeWorkList">Assignment</a></li>
        </ul>
    </li>
    <% }%>
    <%-- </c:if> --%>
    <%if(request.getSession().getAttribute("role")== "ROLE_SUPER_ADMIN") { %>
    <%-- <c:if test="${pageContext.request.remoteUser=='superadmin'}"> --%>
    <li class="color-orange"><a title="Admin" href="/mainMenu" class="current"><span style="padding-top:20px;">SuperAdmin</span></a>
    	<ul>
            <li><a href="/showInstList">Institute</a></li>
            <li><a href="/showImportFile">Import File</a></li>
               <li><a href="/showEmailConfigList">SMTP</a></li>
        </ul>
    </li>
    <% }%>
   <%-- </c:if> --%>
   <%if(request.getSession().getAttribute("role")== "ROLE_SUPER_ADMIN" || request.getSession().getAttribute("role")== "ROLE_ADMIN") { %>
   <%--  <c:if test="${pageContext.request.remoteUser=='superadmin' || pageContext.request.remoteUser=='admin'}"> --%>
    <li class="color-yellow"><a title="Albums" href="/albums" class="current"><span style="padding-top:20px;" >Albums</span></a>
    	<ul>
    		<li><a href="/albums">Album List</a></li>
    		<li><a href="/viewAlbums">View Albums</a></li>
    	</ul>
    </li>
    <li class="color-red"><a title="Events" href="/events" class="current"><span style="padding-top:20px;" >Events</span></a>
	    <ul>
	    	<li><a href="/events">View Events</a></li>
	    </ul>
    </li>
    <li class="color-dpink">
  		<a title="blogs" href="/showMyBlogList" class="current">
  			<span style="padding-top:20px;">Blogs</span>
  		</a>
  	</li>
    <!-- <li class="color-sandal"><a title="Email" href="#" class="current"><span style="padding-top:20px;" >Email</span></a>
    	<ul>
    		
        </ul>
    </li> -->
    <li class="color-blue">
    	<a title="SMS" href="#" class="current"><span style="padding-top:20px;">SMS/Email</span></a>
    	<ul>
    		<li><a href="/showSentSMS">Group SMS</a></li>
            <li><a href="/showUploadContact">Bulk SMS</a></li>
            <li><a href="/showBroadcastSMS">Broadcast</a></li>
            <li><a href="/showEmail">Group Email</a></li>
            <li><a href="/showBulkEmail">Bulk Email</a></li>
            <li><a href="/showBroadcastEmail">Broadcast</a></li>
        </ul>
    </li>
  	 <%-- </c:if> --%>
  	 <% }%>
  	 <%-- <c:if test="${pageContext.request.remoteUser=='user'}"> --%>
  	 <%if(request.getSession().getAttribute("role")== "ROLE_USER") { %>
	  	<li class="color-green"><a title="Events" href="/events" ><span style="padding-top:20px;" >Events</span></a>
	  		<ul>
	    		<li><a href="/viewAlbums">Albums</a></li>
	        </ul>
	  	</li>
    	<li class="color-orange"><a title="Exams" href="/showExamsByCandidate" ><span style="padding-top:20px;" >Exams</span></a>
    		<ul>
	    		<li><a href="/showUserResults">Marks</a></li>
	        </ul>
    	</li>
	   	<li class="color-yellow"><a title="Assignment" href="/showUserHomework" ><span style="padding-top:20px;" >Assignment</span></a></li>
	   	<!-- <li class="color-orange"><a title="Marks" href="/showUserResults" ><span style="padding-top:20px;" >Marks</span></a></li> -->
	   	<!-- <li class="color-yellow"><a title="profile" href="/showCandidateDetail" ><span style="padding-top:20px;" >Profile</span></a></li> -->
		<li class="color-red"><a title="Holidays" href="/showHolidayList" ><span style="padding-top:20px;" >Holidays</span></a></li>
		<!-- <li class="color-blue"><a title="Albums" href="/viewAlbums" ><span style="padding-top:20px;" >Albums</span></a></li> -->
		<li class="color-dpink">
	  		<a title="blogs" href="/showMyBlogList" class="current">
	  			<span style="padding-top:20px;">Blogs</span>
	  		</a>
	  	</li>
	  <li class=color-sandal><a title="Holidays" href="#" ><span style="padding-top:20px;" >Payment</span></a>
		  	<ul>
	    		<li><a href="/showPaymentGayway">Make Payment</a></li>
	            <li><a href="/showPaymentByUser">Payments</a></li>
	        </ul>
	  </li>
  	 <%-- </c:if> --%>
  	 <% }%>
   	<!-- > <li><a title="Main Menu" href="/mainMenu" class="current"><span style="padding-top:20px;" >Main Menu</span></a></li>
	<li><a title="Edit Profile" href="/editProfile"><span style="padding-top:20px;" >Edit Profile</span></a></li>
	<li><a title="Institute" href="/showInstList"><span style="padding-top:20px;" >Institute</span></a>
		<ul>
			<li><a title="Create Institute" href="/showInstitute"><span style="padding-top: 20px;">Create Institute</span></a></li>
			<li class="last"> <a title="View Institute" href="/showInstList"><span style="padding-top: 20px;"> View Institut</span>e</a> </li>
		</ul>
	</li> -->
	<!-- <li><a title="Staff" href="/showStaffList"><span style="padding-top: 20px;">Staff</span></a>
		<ul>
			<li><a title="Create Staff" href="/showCreateStaff"><span style="padding-top: 20px;">Create Staff</span></a></li>
			<li class="last"><a title="Staff List" href="/showStaffList"><span style="padding-top: 20px;">Staff List</span></a></li>
		</ul>
	</li> -->
	<!-- <li><a title="Administration" href="/admin/users"><span style="padding-top: 20px;">Admin</span></a>
		<ul>
			<li><a title="View Users" href="/admin/users"><span style="padding-top: 20px;">View Users</span></a></li>
			<li><a title="Current Users" href="/admin/activeUsers"><span style="padding-top: 20px;">Current Users</span></a></li>
			<li><a title="Reload Options" href="/admin/reload"><span style="padding-top: 20px;">Reload Options</span></a></li>
			<li class="last"><a title="Upload A File" href="/uploadFile"><span style="padding-top: 20px;"> Upload A File</span></a> </li>
		</ul> 
	</li> -->
	<li class="color-voilet"><a title="Logout" href="/logout"><span style="padding-top: 20px;"> Logout</span></a></li>
  
    </ul>
</nav>

<%-- </menu:useMenuDisplayer> --%>






